# Installed by the .deb (build/linux/after-install.sh) where this AppArmor can parse it.
# Ubuntu 24.04 and newer let only programs with a profile create user namespaces, which
# Chromium's sandbox needs; without one Sendwin Browser crashed at launch there. The
# profile is unconfined and only adds user namespaces, like the profiles Ubuntu ships for
# other Chromium-based apps. The path must match the .deb install path.
abi <abi/4.0>,
include <tunables/global>

profile sendwin-browser "/opt/Sendwin Browser/sendwin-browser" flags=(unconfined) {
  userns,

  # Site-specific additions and overrides. See local/README for details.
  include if exists <local/sendwin-browser>
}
